<div class="container"> 
	<div class="row"> 
		<div class="panel panel-info">
			<div class="panel-heading">
				<div class="panel-title">Premium Domain Search</div>
			</div>
			<div class="panel-body">
				<?php if(isset($error)):?>
				<div class="alert alert-danger alert-dismissable">
					<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
					<?php echo $error; ?>
				</div>
				<?php endif;?>
				<div class="row">
					<div class="col-md-12">
						<div class="well">
							<h1>Premium Domain Search Results</h1>
							<hr style="background:skyblue;height:1px;">
							<?php if(isset($result)){?>
							<?php if(!$result['domains']['@count']){?>
							<h4>Sorry your search has no results, please search again.</h4>
							<?}else{?>
							<div class="row">
								<div class="col-md-12">
									<table class="table">
										<thead>
											<tr class="success">
												<th>Premium Domain Name</th>
												<th>Price</th>
											</tr>
										</thead>
										<tbody>
											<?php foreach($result['domains']['premiumdomain'] as $tld)
											{?>
											<tr>
												<td><?=$tld['$']?></td>
												<td><?=$tld['@price']?></td>
											</tr>
											<?}?>
										</tbody>
									</table>
								</div>
							</div>
							<?}?>
							<?}?>
							<div class="row">
								<div class="col-md-12" >
									<div class="middlesearch" style="position:relative;height:100px;">
										<div class="mdlsrchbox">
											<form action="<?=base_url('users/premiumsearch')?>" method="get">
												<input type="text" placeholder="Search for a Premium Domain" class="txtbox4" id="textfield" name="search">
												<input type="submit" class="srchbtn2" value="Submit" id="button" name="button">
											</form>
										</div>
									</div>
								</div>
							</div>
							
							
						</div>
					</div>
				</div>	
			</div>
		</div>
	</div>
</div>
